#ifndef FORMPZ_FJ_H
#define FORMPZ_FJ_H

#include <QWidget>
#include <QHttpMultiPart>
#include <qnetworkreply.h>
#include <qfile.h>
#include <QTreeWidgetItem>

namespace Ui {
class FormPZ_FJ;
}

class FormPZ_FJ : public QWidget
{
    Q_OBJECT

public:
    explicit FormPZ_FJ(QWidget *parent = nullptr);
    ~FormPZ_FJ();



    QNetworkReply *reply; //文件上传
    QNetworkReply *Httpreply; //http请求
private slots:
    void keyPressEvent(QKeyEvent *keyevent);
    void Start();
    void GetHTTP(QString Url); //发送http请求
    void replyFinish(QNetworkReply*); //用于处理响应返回的数据
    void receiveData(QString data);
    void LoadTree(QString ND,int PZBH);
    void uploadFinished();  //上传完成标记
    void FileUPload(QString url,QString FileName,const char * SN);
    bool DownLoadFile(QString FileUrl,QString LocalFile);

    void on_btnReturn_clicked();
    void on_btnCamera_clicked();
    void on_btnFile_clicked();
    void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
    void on_btnDelFile_clicked();


private:
    Ui::FormPZ_FJ *ui;
    int PZH=0;
};

#endif // FORMPZ_FJ_H
